import service from "."
interface loginData{
    username: string
    password: string
}

// 登录
export const login = ( data: loginData) => {
    return service({
        url: 'login',
        method: 'post',
        data
    })
}

// 商品列表
export const getGoodsList = () => {
    return service({
        url: '/getGoodsList',
        method: 'get',
    })
}
